﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.MaHaiBo.Entity.Traceability
{
    /// <summary>
    /// 溯源表
    /// </summary>
    [Table("Tracing")]
    public class Tracing : Traceability.AuditField
    {
        /// <summary>
        /// 溯源表编号
        /// </summary>
        [Key]
        public int TracingId { get; set; }

        /// <summary>
        /// 商品编号
        /// </summary>
        public int CommodityId { get; set; }

        /// <summary>
        /// 生产批次
        /// </summary>
        public string? LOT { get; set; }

        /// <summary>
        /// 保质期
        /// </summary>
        public int ShelfLife { get; set; }
        /// <summary>
        /// 生产许可
        /// </summary>
        public string? ProductionPermit { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string? Manufacturer { get; set; }
        /// <summary>
        /// 封面图片
        /// </summary>
        public string? SurfacePlot { get; set; }
    }
}
